/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import java.util.Date;

import controll.Mapping;

/**
 *
 * @author phuc
 */
public class GioTau implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long gioID;
    private Date gioDen;
    private Date gioDi;
    private Tau tauID;
    private Ga gaID;
    private Mapping map  = new Mapping();

    public GioTau() {
    }

    public GioTau(Long gioID) {
        this.gioID = gioID;
    }

    public Long getGioID() {
        return gioID;
    }

    public void setGioID(Long gioID) {
        this.gioID = gioID;
    }

    public Date getGioDen() {
        return gioDen;
    }

    public void setGioDen(Date gioDen) {
        this.gioDen = gioDen;
    }

    public Date getGioDi() {
        return gioDi;
    }

    public void setGioDi(Date gioDi) {
        this.gioDi = gioDi;
    }

    public Tau getTauID() {
        return tauID;
    }

    public void setTauID(Tau tauID) {
        this.tauID = tauID;
    }

    public Ga getGaID() {
        return gaID;
    }

    public void setGaID(Ga gaID) {
        this.gaID = gaID;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (gioID != null ? gioID.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof GioTau)) {
            return false;
        }
        GioTau other = (GioTau) object;
        if ((this.gioID == null && other.gioID != null) || (this.gioID != null && !this.gioID.equals(other.gioID))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entity.GioTau[ gioID=" + gioID + " ]";
    }
}
